package cxf.server.service.impl;

import cxf.server.pojo.User;
import cxf.server.service.UserService;

import javax.jws.WebService;

/**
 * Created by Administrator on 2018/1/18.
 */
@WebService(endpointInterface = "cxf.server.service.UserService", serviceName = "user")
public class UserServiceImpl implements UserService {
    @Override
    public String sayHello() {
        return "many service";
    }

    @Override
    public User getUser() {
        User user = new User();
        user.setId(1);
        user.setName("wevil");
        user.setDescription("des");
        user.setCreateDate(new java.sql.Date(System.currentTimeMillis()));
        return user;
    }
}
